<ul class="sf_admin_actions">
  <li><?php echo button_to(__('list'), 'bom/list?id='.$bom->getId(), array (
  'class' => 'sf_admin_action_list',
)) ?></li>
  <li><?php 
  if ($bom->getReviseId()){
    echo submit_tag(__('revise'), array (
      'name' => 'save',
      'class' => 'sf_admin_action_save',
    )) ;
  }
  else {
      echo submit_tag(__('save'), array (
      'name' => 'save',
      'class' => 'sf_admin_action_save',
    )) ;
    //add for save as approved
    if ($sf_user->hasGroup('Administrator')){
        echo submit_tag(__('save as approved'), array (
          'name' => 'save_as_approved',
          'class' => 'sf_admin_action_save',
          'confirm' => __('Are you sure you want to save this approved BOM?')
        )) ;
    }
    //end add
  }
?></li>
  <li><?php if (!$bom->getReviseId()) echo submit_tag(__('save and add'), array (
  'name' => 'save_and_add',
  'class' => 'sf_admin_action_save_and_add',
)) ?></li>
</ul>
